package homework35;

public class Client {
    public static void main(String[] args) {
        LeaveApproval person1 = new Director("王主任");
        LeaveApproval person2 = new Manager("杨经理");
        LeaveApproval person3 = new GeneralManager("李总");

        person1.setSuccessor(person2);
        person2.setSuccessor(person3);

        Leave leave1 = new Leave("小白",1);
        person1.hardLeave(leave1);

        Leave leave2 = new Leave("小青",5);
        person1.hardLeave(leave2);

        Leave leave3 = new Leave("小黑",15);
        person1.hardLeave(leave3);

        Leave leave4 = new Leave("小红",35);
        person1.hardLeave(leave4);
    }
}
